package com.sinopec.basemodule.http.api;

import com.sinopec.basemodule.model.login_model.UserInfo;

import java.util.HashMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by ronny on 2018/3/
 */

public interface LoginService {

    /**
     * 密码/验证码 登陆
     *
     * @param paramMap
     * @return
     */
    @Headers("Content-Type: application/json")
    @POST("api/login/login")
    Observable<HttpResult<UserInfo>> login(@Body HashMap<String, String> paramMap);

}
